<div class="container">
    <div class="panel dux-box">
        <div class="panel-head">用户设置</div>
        <form method="post" class="form-x  form-auto" action="{url()}">
            <div class="panel-body">
                <div class="form-group">
                    <div class="label">用户名</div>
                    <div class="field">
                        <input type="text" class="input" id="username" name="username" size="25" disabled value="{$info.username}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">头像</div>
                    <div class="field">
                        <img class="avatar" src="{target('forum/User')->avatar($info['user_id'])}" alt="{$info['user_id']}">
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">用户积分</div>
                    <div class="field">
                        <input type="text" class="input" size="25" disabled value="{$info.integral}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">注册时间</div>
                    <div class="field">
                        <input type="text" class="input" size="25" disabled value="{date('Y-m-d H:i:s',$info.reg_time)}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">注册IP</div>
                    <div class="field">
                        <input type="text" class="input" size="25" disabled value="{$info.reg_ip}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">登录时间</div>
                    <div class="field">
                        <input type="text" class="input" size="25" disabled value="{date('Y-m-d H:i:s',$info.last_login_time)}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">登录IP</div>
                    <div class="field">
                        <input type="text" class="input" size="25" disabled value="{$info.last_login_ip}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">用户组</div>
                    <div class="field">
                        <select class="input" name="group_id">
                            <!--loop{$groupList as $vo}-->
                            <!--if{$info['group_id'] == $vo['group_id']}-->
                            <option value="{$vo.group_id}" selected>
                                <!--{else}-->
                                <option value="{$vo.group_id}">
                                    <!--{/if}-->
                                    {$vo.name}</option>
                                <!--{/loop}-->
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">邮箱</div>
                    <div class="field">
                        <input type="text" class="input" id="email" name="email" size="50" value="{$info.email}">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">密码</div>
                    <div class="field">
                        <input type="text" class="input" id="password" name="password" size="50" value="" placeholder="不修改请留空">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>用户状态</label>
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <?php if(!isset($info[ 'status'])) $info[ 'status']=1 ; ?>
                            <!--if{$info['status']}-->
                            <label class="button active">
                                <input name="status" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <label class="button">
                                    <input name="status" value="1" type="radio">
                                    <!--{/if}-->
                                    <span class="icon icon-check"></span> 正常</label>
                                <!--if{!$info['status']}-->
                                <label class="button active">
                                    <input name="status" checked="checked" value="0" type="radio">
                                    <!--{else}-->
                                    <label class="button">
                                        <input name="status" value="0" type="radio">
                                        <!--{/if}-->
                                        <span class="icon icon-times"></span> 禁用</label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel-foot">
                <div class="form-button">
                    <div id="tips"></div>
                    <input type="hidden" name="user_id" type="hidden" value="{$info.user_id}">
                    <button class="button bg-main" type="submit">保存</button>
                    <button class="button bg" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
    <br>
</div>